<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="style/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="style/js/fun.js"></script><title></title></head><body><span class="subTitle">php的三木运算</span>
<?php	$date = Date("D");  //获取当前星期..
	(($date == "Sun") or ($date == "Sat")) ? ($s = "周末时间!") : ($s = "工作时间T.T"); //or运算. ||
	echo($s);?>
<span class="subTitle">switch多重判断</span>
<?php
	$date = Date("D");
	switch($date){
		case "Mon": echo "狗日的周一"; break;
		case "Tue": echo "操蛋的周二"; break;
		case "Wed": echo "该死的周三"; break;
		case "Thu": echo "无聊的周四"; break;
		case "Fri": echo "给力的周五!!!"; break;
		case "Sat": echo "让人激动地周六.."; break;
		default: echo "今天周天..明天又是狗日的周一.."; break;
	}
?></body></html>